home *** CD-ROM | disk | FTP | other *** search
- ; Script to install ADash Demo Version
- ; Last Modified 5/6/96
- ; ©1993-6 Robert W. Vreeland Jr.
- ; All Rights Reserved
-
- (complete 1)
-
- (set vernum (getversion "exec.library" (resident)))
-
- (set ver (/ vernum 65536))
-
- (set aginrom (> ver 38))
-
- (if (< ver 37) (message "\nADash requires V2.04 or higher Kickstart and WorkBench. It can "
- "not be installed on this computer."))
-
- (if (< ver 37) (exit (quiet)))
-
- (set cpu (database ("cpu"))) ;Figure out which cpu we are running under
- ;and set name accordingly
- (set name "Install1:ADash.20") ;Default to 68020 and higher version
-
- (if (= "68000" cpu)
- (set name "Install1:ADash")
- )
-
- (if (= "68010" cpu)
- (set name "Install1:ADash")
- )
-
- (set adanswer (askchoice (prompt "\nWould you like to install the main ADash program in your "
- "Sys:WBStartup directory so that it is run when you boot your "
- "Amiga?")
- (choices "Yes" "No")
- (default 0)
- (help "\nYou will also have the option of installing the main ADash program "
- "in the same directory as the rest of the files in the package.")
- )
- )
-
- ;Copy ADash to Sys:WBStartup if desired
- (if (= adanswer 0) ((copyfiles (source name)
- (dest "Sys:WBStartup")
- (optional "nofail")
- (infos)
- )
- (tooltype (dest (tackon "Sys:WBStartup" name))
- (noposition)
- ))
- )
-
- (complete 2)
-
- (set adpanswer (askchoice (prompt "\nWould you like to install ADashPrefs in your Prefs: directory?")
- (choices "Yes" "No")
- (default 0)
- (help "\nADashPrefs is used to control most of ADash's settings. If you do not "
- "install ADashPrefs, you will also have the option of installing it in the same "
- "directory as the rest of the files in the package.")
- )
- )
-
- ;Copy ADashPrefs
- (if (= adpanswer 0) ((copyfiles (source "Install1:ADashPrefs")
- (dest "Sys:Prefs")
- (optional "nofail")
- (infos)
- )
- (tooltype (dest "Sys:Prefs/ADashPrefs")
- (noposition)
- ))
- )
-
- (complete 4)
-
- (set panswer (askchoice (prompt "\nWould you like to install the default preferences file?")
- (choices "Yes" "No")
- (default 0)
- (help "\nIf you do not install the default preferences, you will want "
- "to run ADashPrefs (located in your preferences directory) "
- "to create a file before using ADash. The default "
- "preferences file will add in the blanker modules for you "
- "but leave most of ADash's other settings at their defaults.")
- )
- )
-
- ;Copy default preferences if desired
- (if (= panswer 0) (
- (copyfiles (source "Install1:ADash.Prefs")
- (dest "ENV:")
- (optional "nofail"))
- (copyfiles (source "Install1:ADash.Prefs")
- (dest "ENVARC:")
- (optional "nofail"))
- )
- )
-
- (complete 6)
-
- (set tmain (askdir (prompt "\nSelect the location to install the ADash package...ADash will create "
- "an ADash directory to contain the files.")
- (help "\nChoose a destination partition or directory to contain "
- "the various files that ADash needs to run as well as copies of the main "
- "ADash program and ADashPrefs if desired.")
- (newpath)
- (default "Work:")
- )
- )
-
- (set amain (tackon tmain "ADash"))
-
- (if (NOT (exists amain)) ;Create directory if necessary
- (makedir amain (infos))
- )
-
- (set parts (askoptions (prompt "\nPlease choose the items you would like installed")
- (choices "ADash"
- "ADashPrefs"
- "Blankers"
- "SpeedIcons"
- "Sounds"
- "Images"
- "DataTypes"
- "Fonts"
- "Amigaguide Help"
- "Amigaguide.library"
- "Developer Materials")
- (help "\nYou may choose to install only parts of the ADash package. "
- "If you do not install all parts, you may not be able to use "
- "certain features. You can choose to install those parts "
- "later by rerunning this installer and selecting the new "
- "parts at this point. The parts you can choose to install"
- "are:\n\n"
-
- "ADash: This is the main ADash program.\n\n"
- "ADashPrefs: This is the preference program which controls "
- "most of ADash's settings.\n\n"
- "Blankers: These are the blanker modules used when the "
- "screen is blanked.\n\n"
- "SpeedIcons: These are IFF icons that may be used in the "
- "Dock portion of the ADash window.\n\n"
- "Sounds: These are IFF 8SVX soundfiles are used by certain "
- "blanker modules and may be used for the sound played when "
- "the alarm clock or timer sound.\n\n"
- "Images: These are images datatypes for use with the Display "
- "blanker module.\n\n"
- "Datatypes: These are datatypes used by the Display blanker "
- "module. They will only be installed if you have Kickstart "
- "V3.0 or higher.\n\n"
- "Fonts: This is a special 'digital' font used by ADash's "
- "numeric displays.\n\n"
- "Amigaguide help: This is the main document for ADash which "
- "is also used for the online help.\n\n"
- "Amigaguide.library: This library is used for the amigaguide "
- "help. You will not need to install it under WB3.0 or higher. "
- "It will only be installed if you do not already have it in "
- "your LIBS: directory or if the version you have is an older "
- "one.\n\n"
- "Developer Materials: This is information on developing "
- "Blanker Modules for ADash.")
- )
- )
-
- ;Copy ADash again if desired
- (if (IN parts 0) (copyfiles (source name)
- (dest amain)
- (optional "nofail")
- (infos)
- )
- )
-
- (complete 8)
-
- (copyfiles (source "Install1:WB-Launcher")
- (dest "L:")
- (optional "nofail")
- )
-
- (copyfiles (source "Install1:WB-Launcher")
- (dest amain)
- (optional "nofail")
- )
- ;Copy ADashPrefs again if desired
- (if (IN parts 1) (copyfiles (source "Install1:ADashPrefs")
- (dest amain)
- (optional "nofail")
- (infos)
- )
- )
-
- (complete 10)
-
- (set fontdest (tackon amain "Fonts"))
-
- ;Install Digital font if desired
- (if (IN parts 7) (
- (if (NOT (exists fontdest))
- (makedir fontdest ))
- (copyfiles (source "Install1:Fonts")
- (dest fontdest)
- (optional "nofail")
- (all)
- ))
- )
-
- (complete 11)
-
- ;Install amigaguide.library and doc if desired
- (if (AND (IN parts 9) (= aginrom 0))
- (copylib (source "Install1:amigaguide.library")
- (dest "Libs:")
- (optional "nofail")
- )
- )
-
- (complete 15)
-
- (if (IN parts 8)
- (copyfiles (source "Install1:ADash.guide")
- (dest amain)
- (optional "nofail")
- (infos))
- )
-
- (complete 18)
-
- (copyfiles (source "Install1:Remove ADash")
- (dest amain)
- (optional "nofail")
- (infos)
- )
-
- (set sidest (tackon amain "SpeedIcons"))
-
- ;Install SpeedIcons if desired
- (if (IN parts 3) (
- (if (NOT (exists sidest))
- (makedir sidest (infos))
- )
- (copyfiles (source "Install1:SpeedIcons")
- (dest sidest)
- (all)
- (optional "nofail")
- ))
- )
-
- (complete 23)
-
- (set snddest (tackon amain "Sounds"))
-
- ;Install 8SVX sounds if desired
- (if (IN parts 4) (
- (if (NOT (exists snddest))
- (makedir snddest (infos)))
- (copyfiles (source "Install1:Sounds")
- (dest snddest)
- (all)
- (optional "nofail")
- ))
- )
-
- (copyfiles (source "Install1:Readme.demo")
- (dest amain)
- (optional "nofail")
- (infos)
- )
-
- (complete 32)
-
- (set blankerdest (tackon amain "Blankers"))
-
- ;Install blanker mods if desired
- (if (IN parts 2) (
- (if (NOT (exists blankerdest))
- (makedir blankerdest (infos))
- )
- (copyfiles (source "Install2:Blankers")
- (dest blankerdest)
- (all)
- (optional "nofail")
- ))
- )
-
- (complete 59)
-
- ;Install datatypes if desired
- (if (AND (IN parts 6) (= aginrom 1)) (
- (copyfiles (source "Install2:Datatypes/JPEG.datatype")
- (dest "SYS:classes/datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/JPEG")
- (dest "DEVS:Datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/bmp.datatype")
- (dest "SYS:classes/datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/Windows BMP")
- (dest "DEVS:Datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/macpaint.datatype")
- (dest "SYS:classes/datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/MacPaint")
- (dest "DEVS:Datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/sun.datatype")
- (dest "SYS:classes/datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/Sun Raster")
- (dest "DEVS:Datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/PCX.datatype")
- (dest "SYS:classes/datatypes")
- (optional "nofail")
- )
- (copyfiles (source "Install2:Datatypes/PCX")
- (dest "DEVS:Datatypes")
- (infos)
- (optional "nofail")))
- )
-
- (complete 62)
-
-
- (complete 73)
-
- (set imgdest (tackon amain "Images"))
-
- ;Install images if desired
- (if (IN parts 5) (
- (if (NOT (exists imgdest))
- (makedir imgdest (infos)))
- (copyfiles (source "Install3:Images")
- (dest imgdest)
- (all)
- (optional "nofail")
- ))
- )
-
- (complete 99)
- ;Create assign if desired
- (startup "ADash" (prompt "\nDo you wish to add the ADASH: assign to your "
- "user startup script?")
- (help "\nThe ADASH: assign is used by ADash to locate its "
- "various components. If you do not add this assign to "
- "your startup script, you may have to tell ADash where to "
- "find the files it needs.")
- (command ("Assign ADash: %s\n" amain))
- (command ("Assign Fonts: %s add" fontdest))
- )
-
- (makeassign "ADash" amain)
-
- (set @default-dest amain)
-
- (run ("run sys:utilities/more ADash:Readme.Demo"))
-
- (complete 100)